/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package madmac.modulo;

import java.util.List;
import madmac.hibernate.util.AbstractDao;

/**
 *
 * @author atila
 */
public class ModuloDao extends AbstractDao {

	private static ModuloDao instance;

	private ModuloDao() {
	}

   public static ModuloDao getInstance() {
		if (instance == null) {
			instance = new ModuloDao();		
		}
		return instance;
	}

	public Modulo findById(Class clazz, Integer id) {
		return (Modulo) super.find(clazz, id);
	}

	public List<Modulo> findAll() {
		return super.findAll(Modulo.class);
	}
}

